<template>
  <div>
    <div class="titleBox">
      <div class="icon-xinxi iconfontcolor"></div>
      <h3 class="title">企业信息</h3>
      <div class="line"></div>
    </div>
    <el-descriptions
      class="enterpriseInfo"
      :column="3"
      labelClassName="labelStyle"
      contentClassName="contentStyle"
      :labelStyle="{
        color: '#939393',
        fontSize: '12px',
        fontWeight: 'bold',
        marginRight: '20px',
      }"
      :contentStyle="{
        color: '#262626',
        fontSize: '12px',
      }"
    >
      <el-descriptions-item label="企业简称">{{
        BasicData.abbreviation
      }}</el-descriptions-item>
      <el-descriptions-item label="统一社会信用代码">{{
        BasicData.taxpayerIdentificationNumber
      }}</el-descriptions-item>
      <el-descriptions-item label="法定代表人">{{
        BasicData.juridicalPerson
      }}</el-descriptions-item>
      <el-descriptions-item label="推荐部门">{{
        BasicData.recommendDepartment
      }}</el-descriptions-item>
      <el-descriptions-item label="所属地">{{
        BasicData.location
      }}</el-descriptions-item>
      <el-descriptions-item label="注册国家">{{
        BasicData.registeredCountry
      }}</el-descriptions-item>
      <el-descriptions-item label="注册资金"
        >{{ BasicData.registeredCapital }}万</el-descriptions-item
      >
      <el-descriptions-item label="企业性质">{{
        BasicData.enterpriseNature
      }}</el-descriptions-item>
      <el-descriptions-item label="注册地址" :span="3">{{
        BasicData.comAddress
      }}</el-descriptions-item>
      <el-descriptions-item label="办公地址" :span="3">{{
        BasicData.officeAddress
      }}</el-descriptions-item>
      <el-descriptions-item label="经营范围" :span="3">{{
        BasicData.experienceRange
      }}</el-descriptions-item>
      <el-descriptions-item label="营业执照" :span="3">
        <div class="picBox">
          <div class="pic_item">
            <el-image
              class="pic"
              :src="BasicData.businessLicenseFile"
              :preview-src-list="[BasicData.businessLicenseFile]"
            >
            </el-image>
          </div>
        </div>
      </el-descriptions-item>
    </el-descriptions>

    <!-- 财务信息 -->

    <div class="titleBox" style="margin-top: 35px">
      <div class="icon-xinxi iconfontcolor"></div>
      <h3 class="title">财务信息</h3>
      <div class="line"></div>
    </div>
    <el-descriptions
      class="enterpriseInfo"
      :column="3"
      :labelStyle="{
        color: '#939393',
        fontSize: '12px',
        fontWeight: 'bold',
        marginRight: '20px',
      }"
      :contentStyle="{
        color: '#262626',
        fontSize: '12px',
      }"
    >
      <el-descriptions-item label="收款人账户名">{{
        BasicData.payeeAccountName || '--.--'
      }}</el-descriptions-item>
      <el-descriptions-item label="开户行">{{
        BasicData.openingBank || '--.--'
      }}</el-descriptions-item>
      <el-descriptions-item label="开户行账号">{{
        BasicData.bankAccountNumber || '--.--'
      }}</el-descriptions-item>
      <el-descriptions-item label="银行名称">{{
        BasicData.bankName || '--.--'
      }}</el-descriptions-item>
      <el-descriptions-item label="支行名称">{{
        BasicData.subbranchName || '--.--'
      }}</el-descriptions-item>
      <el-descriptions-item label="分行编码">{{
        BasicData.branchCode || '--.--'
      }}</el-descriptions-item>
      <el-descriptions-item label="分行省市">{{
        BasicData.branchCities || '--.--'
      }}</el-descriptions-item>
    </el-descriptions>

    <!-- 联系信息 -->

    <div class="titleBox" style="margin-top: 29px">
      <div class="icon-xinxi iconfontcolor"></div>
      <h3 class="title">财务信息</h3>
      <div class="line"></div>
    </div>
    <el-descriptions
      class="enterpriseInfo"
      :column="3"
      :labelStyle="{
        color: '#939393',
        fontSize: '12px',
        fontWeight: 'bold',
        marginRight: '20px',
      }"
      :contentStyle="{
        color: '#262626',
        fontSize: '12px',
      }"
    >
      <el-descriptions-item label="公司电话">{{
        BasicData.companyTel || '--.--'
      }}</el-descriptions-item>
      <el-descriptions-item label="联系人">{{
        BasicData.headName
      }}</el-descriptions-item>
      <el-descriptions-item label="负责人电话">{{
        BasicData.headTel 
      }}</el-descriptions-item>
      <el-descriptions-item label="负责人邮箱">{{
        BasicData.headMail || '--.--'
      }}</el-descriptions-item>
    </el-descriptions>
  </div>
</template>

<script>
export default {
  props: {
    BasicData: {},
  },
  data() {
    return {};
  },
  mounted() {},
  watch: {
    BasicData(e) {
      // console.log("基本信息 传子数据", this.BasicData);
    },
  },
};
</script>

<style lang="scss" scoped>
.titleBox {
  display: flex;
  align-items: center;
  margin-bottom: 14px;
  > .icon-xinxi {
    font-size: 16px;
    margin-right: 7px;
  }
  > .title {
    color: #262626;
    font-size: 14px;
    margin-right: 14px;
  }
  > .line {
    height: 1px;
    flex: 1;
    background-color: #f0f0f0;
  }
}

.enterpriseInfo {
  min-width: 865px;

  .picBox {
    display: flex;

    .pic_item {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      margin-right: 32px;
      .pic {
        width: 109px;
        height: 71px;
      }
      > span {
        color: #666666;
        font-size: 12px;
      }
    }
  }
}
</style>
